State Transition Diagram Example