refactor FiveHundred.rb