updated pair.rb for myhash.rb