added exercise 31