Source: https://perso.univ-rennes1.fr/matthieu.romagny/115/exo_g.pdf