exercises 4.38 and 4.40