Done up to exercise 3