Code Added for Task1 by Sumeet