FSM sample - get current state