Working on chapter 10 example