Source: https://www.labri.fr/perso/hocquard/L2CCASE/Cours/PythonSlidesEco_2021.pdf