Finishes chapter 5 exercises