Updated method, main.rb, compare.rb