public String[] build(int[] values) {
		int[] hist = new int[10];
		for (int v : values) {
			hist[v]++;
		}
		int max = 0;
		for (int i : hist) {
			max = Math.max(i, max);
		}
		char[][] result = new char[max + 1][10];
		for (int i = max; i >= 0; i--) {
			for (int j = 0; j < hist.length; j++) {
				result[i][j] = hist[j] >= i + 1 ? 'X' : '.';
			}
		}
		String[] r = new String[result.length];
		for (int i = 0; i < r.length; i++) {
			r[i] = new String(result[r.length - 1 - i]);
		}
		return r;
	}