A compound of formula I: or a compound of formula II: or pharmaceutically acceptable salts thereof, wherein R 1 -R 7 and X are as defined in the description, and the use of these compounds in therapy, in particular in treating cancer or as an inhibitor of the interaction of the MDM2 protein with p53.