The present invention encompasses compounds of formula (I), wherein the groups R1 to R5, X, Y and W have the meanings given in the claims and specification, their use as inhibitors of BCL6, pharmaceutical compositions which contain compounds of this kind and their use as medicaments, especially as agents for treatment and/or prevention of oncological diseases.