Initial draft for a FSM