state machine figure 19