Solution and tests for Exercise 1
Adding functions and tests for Week 2 exercises