public static void main(String[] args) {
		Cell[][] spreadsheet = new Cell[8][10];
		length = spreadsheet[0].length;
		setSpreadsheetToEmpty(spreadsheet);
		printSpreadsheet(spreadsheet);

		String inputFromUser = inputFromUser();
		while (!inputFromUser.equalsIgnoreCase("quit")) {
			int indexOfEquals = inputFromUser.indexOf("=");
			if (inputFromUser.contains("clear")
					&& inputFromUser.indexOf(" ") != -1) {
				cellToClear(
						inputFromUser.substring(inputFromUser.indexOf(" ") + 1),
						spreadsheet);
			} else if (inputFromUser.equalsIgnoreCase("clear")) {
				setSpreadsheetToEmpty(spreadsheet);
			} else if (indexOfEquals >= 0) {
				String cellToSet = inputFromUser.substring(0, indexOfEquals)
						.trim();
				String cellVal = inputFromUser.substring(indexOfEquals + 1)
						.trim();
				int row = getRowNumber(cellToSet);
				int col = getColNumber(cellToSet);
				System.out.println("cellVal =" + cellVal);
				Cell cell = null;
				if (cellVal.startsWith("\"")) {
					cell = new TextCell(cellVal.substring(1).substring(0,
							cellVal.length() - 2));
				} else {
					try {
						cell = new NumberCell(Double.parseDouble(cellVal));
					} catch (Exception e) {

					}
				}
				try {
					spreadsheet[row][col] = cell;
				} catch (Exception e) {
					System.out.println("Index out of bounds.");
				}
			} else if (indexOfEquals == -1) {
				try {
					String cell = inputFromUser;
					int row = getRowNumber(cell);
					int col = getColNumber(cell);
					System.out.println(spreadsheet[row][col]);
				} catch (Exception e) {
					System.out.println("Please Try Again.");
				}
			}
			printSpreadsheet(spreadsheet);
			inputFromUser = inputFromUser();
		}
	}