chapter 6: candy dispenser