FSM diagram 1