Completed exercises 11 and 12