Update code to page 297 again