people = {:sara=>"human", :paul=>"human", :oliver=>"cat", :mabe=>"dog" } people.each do |person, type| puts person if type=="human" end