Completed code for Project Gutenberg Part 2