Chapter 9 excercise.