Solution of Problem #7