Added chapter 4 exercise 6