Homework upto exercise 5