Completed till exercise 13