exercises 2.36 through 39