add fsm sample