solve exercise 30.07