Completed exercises 38 and 39