Added exercise 2 solution.