Finished exercises chap 9