show that it behaves as a NAND gate.