Solution of Problem #1