completed exercises 5-7