added exercise 40