The invention provides compounds of formula I or pharmaceutically acceptable salt, solvate or hydrate thereof (I) wherein ring A represents group A-I or A- II (A-I, A-II) A1, A2, A3, A4 represent independently C(R4aa) or N, wherein no more than one of A1, A2, A3, and A4 represents N A5 represents C(R4b) or N B1, B2, B3 and B4 represent independently C(R3) or N, wherein no more than two of B1, B2, B3 and B4 represent N n is 1 or 2 and R1, R2, R3, R4a and R4aa and R4b are as defined in the claims, as well as methods of using the compounds to treat proliferation diseases, in particular cancer.