completed till exercise 7