Half way through exercise 3