Problem 3 broken apart