Completed exercises 7 & 8.