chapter 3 example 2