Source: https://webusers.imj-prg.fr/~yongqi.liang/files/teaching/2014-2015/2014-15-td1-revisions.pdf