A compound of formula (I), wherein R
3
, R
4
, G, B, M, and Z are as defined in the claims, and pharmaceutically acceptable salts thereof are disclosed. The compounds of formula (I) possess utility as FGFR inhibitors and are useful in the treatment of a condition, where FGFR kinase inhibition is desired, such as cancer.