public Digit[] read(String buffer) {
		lines = buffer.split("\n");
		validateInput(lines);
		int numberOfDigits = lines[0].length()/3;
		Digit[] result = new Digit[numberOfDigits];
		for (int i = 0; i < numberOfDigits; i++) {
			result[i] = parseDigit(digitIndex(i));
			
		}
		return result;
	}