exercises 1.9 and 1.10