Added solutions to Problem 2