The invention provides a compound of Formula I and and a method for the preparation thereof, pharmaceutical compositions comprising such compounds and the use of such compounds in the treatment of phosphoinositide 3 - kinase related diseases and disorders such as cancer. The instant application further relates to the treatment of histone deacetylase related disorders and diseases related to both histone deacetylase and phosphoinositide 3-kinase.