The present invention relates to compounds of formula (I) and to pharmaceutically acceptable salts and pharmaceutical compositions thereof. The present invention also relates to use of the compounds of formula (I) in modulating the activity of protein kinases and in the treatment of disease, particularly a disease, disorder or syndrome associated with CDK 4 inhibition.