solve exercise 31.04