Finished exercises at the end of chapter 5