chapter 6: moved get, set and modify to the companion object
chapter 6: candy dispenser