added example of FSM