Added source code for exam 2 solutions.