solve exercise 29.04