FIGURE 2.2   Finite State Machine