private static String pluralityValue(
			ArrayList<HashMap<String, String>> examples, String goalAttribute) {
		Set<String> set = new HashSet<String>();
		for (HashMap<String, String> example : examples) {
			set.add(example.get(goalAttribute));
		}
		int largestFreq = 0;
		String value = "";
		for (String s : set) {
			int freq = Collections.frequency(set, s);
			if (freq > largestFreq) {
				largestFreq = freq;
				value = s;
			}
		}
		return value;
	}