https://notehubs.blogspot.com/2019/09/logic-function-and-boolean-algebra.html