exercises 1.17 and 18