Compounds containing ester groups