Finishes chapter 6 exercises