Adding chapter 6 exercise 1