exercise 1.11 & 1.12