Finish section 8.5 exercises