Refactor in_words.rb