solve exercise 20.37