Update code to page 297