added state machine picture