Refactor ShakespeareAnalyzer#print_lines