To start with a fairly simple puzzle, the NAND gate is just comprised of an AND gate and a NOT gate chained together.