This was a task i was working on as part of an exercise.