Solution
Ingredient 3

The clock is an input. Periodically, you should switch it on and off.

The latches in the diagram are positive edge-triggered latches, also known as "D flip-flops". When the clock signal switches on, Q becomes equal to D; at all other times, Q remains constant.