Submitted first version of solution

Hi,
I'm sorry I just came back from vacation and didn't have much time to fully complete the coding challenge. Here's a first step towards the complete solution. I was asked to submit it by today.

Thanks,
Tristan