solve exercise 30.13