Finalize chapter 7 exercises