Source: https://pf-bb.github.io/Formation-Rrrr/_downloads/TP1_exercices_correction.pdf