Reactions of esters