You can make a not and an or gate just with nand gates:
NOT GATE: A NAND A.
OR GATE: (A NAND A) NAND (B NAND B)