build_code_book now appears to be working