Compounds of formula (I): (I) wherein Het, R3, R4, R5, R7, R8, R9, T, p, p', q, and q' are as defined in the description are pro-apoptotic agents useful in the treatment of cancers and of autoimmune and immune system diseases.Сполуки формули (І): , (I) де Het, R3, R4, R5, R7, R8, R9, Т, р, p', q та q' є такими, як визначено в описі.