complete exercise 31