This completes Problem 3 of the challenge!