finalize chapter 24 code