Chapter 6 Using States to Control Behavior