Done chapter 4 exercise 2