attempting exercise 1.9
attempting exercise 1.10