Solution to Problem #1