public static void load() { //for loading data
		if(serObj.dir.list().length > 0) {
			System.out.println("The following files are saved");
			Integer count = 1;
			for(File files : serObj.dir.listFiles()) {
				loadedAssignments.put(count, files.getName());
				System.out.println(count + ": " + files.getName());
				count ++;
			}
			System.out.println("Which file would you like to load?");
			while(true) {
				input = sc.nextLine();
				try {
					if(loadedAssignments.containsValue(input) || loadedAssignments.containsValue(input + ".ser")) {
						serObj.deserialize(input.replaceAll(".ser", ""));
						gradeBk = serObj.gradeBk;
						System.out.println("Data loaded");
						break;
					}else if(loadedAssignments.containsKey(Integer.parseInt(input))) {
						String temp = loadedAssignments.get(Integer.parseInt(input));
						if (temp.indexOf(".") > 0)
						    temp = temp.substring(0, temp.lastIndexOf("."));
						serObj.deserialize(temp);
						gradeBk = serObj.gradeBk;
						System.out.println("Data loaded");
						break;
					}else {
						throw new NumberFormatException();
					}
				}catch(NumberFormatException blah) {
					System.out.println("Not a valid file\nPick another");
				}
			}	
		}else {
			System.out.println("There are no files saved");
		}
	}