upto exercise 5.11