Source: http://www.seinturier.fr/cours/programmation/dut/TD1-correction.pdf