Finished ch10 exercises