added exercise 4.2