added exercise 3.8 pg 132