Output for Problem 3