Implemented Output for TASK4