added chapter 1 exercise 8