Added Code

Comments also added