Problem 2: Solved