private static void addEvent(Calendar cal) {
		Scanner in = new Scanner(System.in);

		System.out.println("Please enter the name of the event:");
		String name = in.nextLine();

		System.out.println("Please enter the type of the event\n(class, meeting, work, other):");
		String type = in.nextLine();

		if (type.equalsIgnoreCase("Class")) {
			Event e = new Event(name, type);
			e.setRecur(true);

			System.out.println("Enter the days of the week the class occurs on (m, t, w, r, f):");
			String days = in.nextLine();
			days.replaceAll(" ", "");

			for (char c : days.toCharArray()) {
				e.setRecurrance(c);
			}

			while (true) {
				System.out.println("Please enter the start time of the class (h:m am):");
				try {
					e.setDateTime(new DateTime("8-31-14 " + in.nextLine()));
				} catch (Exception ex) {
					System.out.println("The date was not formatted correctly.");
					continue;
				}

				System.out.println("Please enter the end time of the class (h:m am):");
				try {
					e.setEndTime(new DateTime("8-31-14 " + in.nextLine()));
				} catch (Exception ex) {
					System.out.println("The date was not formatted correctly.");
					continue;
				}
				break;
			}

			cal.createEvent(e);
		} else {
			Event e = new Event(name, type);

			while (true) {
				System.out.println("Please enter the start date and time of the event (m-d-y h:m):");
				try {
					e.setDateTime(new DateTime(in.nextLine()));
				} catch (Exception ex) {
					System.out.println("The date was not formatted correctly.");
					continue;
				}

				System.out.println("Please enter the end date and time of the event (m-d-y h:m):");
				try {
					e.setEndTime(new DateTime(in.nextLine()));
				} catch (Exception ex) {
					System.out.println("The date was not formatted correctly.");
					continue;
				}
				break;
			}

			System.out.println("Would you like to repeat this event every week? (yes or no):");
			if (in.nextLine().equalsIgnoreCase("yes")) {
				e.setRecur(true);
				boolean[] array = new boolean[7];
				array[e.getDateTime().dayOffest()] = true;
				e.setRecurrance(array);
			}

			cal.createEvent(e);
		}
		//in.close();
	}