upto exercise 1.18