codes from book