solve exercise 49.10