Refactoring into words.rb