Completed upto exercise 1.3