Finished exercises from end of chapter 5