solve exercise 31.06