FSM1 Mealy and Moore