Problem2 - Problem5 solutions.