Source: http://www.gecif.net/articles/genie_electrique/ressources/exercice_de_logique.pdf