solve exercise 49.13