Chapter 3 excercises.