The invention concerns bicyclic compounds of Formula (I) wherein R1 R2 R3 R4 R5 X1 X2 Y k m n and p are as defined in the description. The present invention also relates to processes for the preparation of such compounds pharmaceutical compositions containing them and their uses in the treatment of androgen-receptor associated conditions particularly prostate cancer.