Added chapter 6 exercise 4