completed exercises 5.6