Exercise for UML StateMachines