completed exercises 7-10