Source: https://irma.math.unistra.fr/~delzant/coursproba1.pdf