Solution to Problem 13, needs documenting
Solved Problem 12, needs documenting