solve exercise 34.10