State Machine Pattern for Real‑Time Traffic Lights | Blocks and Arrows | Blocks And Arrows