Complete chapter 1 example 8