Adding in challenge 3.

Adding in the code solution for challenge 3.