exercises 1.17 - 1.19