does anyone knows how a nand gate function as 3 other gates and also for a nor gate function as 3 other gates?