Source: https://spip.teluq.ca/inf6450/IMG/pdf/examenfacticesolutions-3.pdf