moving comments from code into the text of the chapter
Moving comments from code to chapter text
Moving comments from code to chapter text
refactor repetitive code into a helper function
Moving comments from code to chapter text
resort to a few compression schemes to get under 500 lines, but nothing too unreadable