Source: https://www.lamsade.dauphine.fr/~manouvri/C/Exemples_progC.pdf