FSM sample