Code and Output for assignment1 - Data