exercises 1.11 and 1.12