Source: http://www-lor.int-evry.fr/~epsi/TQG/2013/exercices.pdf