D flip-flop

Using only NAND gates (and no inverters), create a D flip-flop with activelow asynchronous presets and clears. You may make it either rising-edge or falling-

edge triggered, but you must say which one it is.​