Source: https://www.lri.fr/~fiorenzi/Teaching/AL/C4.pdf