Solution to Problem 2