Source: https://www.maths.qmul.ac.uk/~sb/dm/dm04chap6.pdf