here, i made a d flip flop using my smallest d latch, the top 3 rows are only needed on the top one if you use this to store values with multiple bits, could be used as a register or memory (memory could use d latch though)