exercises 1.31 and 1.32