exercises 2.40 and 41