Completed exercises 5.6 1-4