Finished chap 10 exercises