Source: https://www.plymouth.ac.uk/uploads/production/document/path/3/3760/PlymouthUniversity_MathsandStats_Boolean_algebra_and_logic_gates.pdf