Initial design of StateMachine