Work on Exercise 6
Tidied up Exercse 5 solution