A simple StateMachine lib that support stateless "state"