added exercise 3.8