Exercise 2.2

Part 3 of exercise 2