chapter 11, work with classes