solve exercise 30.08