exercise 4.38-4.39