Finished chap 5 exercises