Done chapter 3 exercise 7