Main
Flips flops and latches