FSM part two

FSM part two