Completed exercises 7.6 1-4