another chapter 12 example converted