added chapter 1 example 7