Refactoring code to make it include the text of the novel