added compare.rb