solve exercise 18.33