added exercise 4.8