Completed exercises 1-4