Source: https://wwwling.arts.kuleuven.be/qlvl/probgram/ws/Grafmiller.pdf