The NANDs are wired with feedback to opposite gates.
The data is opposite the output.

































This clocking curcuit is added to our flip-flop.
The data is latched because the clock toggles the output.