Completed exercises 38 through 40.