Implemented basic methods in StateMachine, State and Transition