guess.rb refactor.