solve exercise 36.04