map[string]int stores the items in random order, now use []pair.