Source: https://www.orleans-informatique.com/info/stmg/exercices/Exercices - Q1 (suite) - corrigé.pdf