Source: https://fl.lf3.cuni.cz/studijni/Premedical course/Study materials/Chemistry/108-Derivatives of Carboxylic Acids (lectures 11 and 12).pdf