added more methods and structure to WordChainClass.rb