Problem 2 solutions