completed exercises 6-3 and 6-4