public static void main(Group group, School school, Scanner scan) {
		int choice = 0;
		boolean done = false;
		String stringInput = null;
		
		while (!done) {
			System.out.printf("Group ID: %d, Type: %s\n", group.getID(), group.getType());
			System.out.println(group.print("\t"));
			System.out.println("\t1. Print students list by ID.");
			System.out.println("\t2. Print students list by Name.");
			System.out.println("\t3. Edit name.");
			System.out.println("\t4. Edit Capacity.");
			System.out.println("\t5. Edit Professor.");
			System.out.println("\t0. Go back to previous menu.");
			System.out.print("Choice: ");
			choice = scan.nextInt(); scan.nextLine();
			switch (choice) {
				case 0:
					done = true;
					break;
				case 1:
					System.out.println(group.printStudents("\t", (SortByNameComparator)null ));
					break;
				case 2:
					System.out.println(group.printStudents("\t", new SortByNameComparator()));
					break;
				case 3:
					System.out.print("Please input new group name: ");
					stringInput = scan.nextLine();
					group.setName(stringInput);
					break;
				case 4:
					System.out.print("Please input new capacity: ");
					choice = scan.nextInt(); scan.nextLine();
					try {
						group.setCapacity(choice);
					} catch (MaxCapacityException e) {
						System.out.println(e.getMessage());
					}
					break;
				case 5:
					System.out.print("Please input new Professor ID: ");
					choice = scan.nextInt(); scan.nextLine();
					try {
						group.setProfessor(school.getProfessor(choice));
					} catch (KeyErrorException e) {
						System.out.println(e.getMessage());
					}
					break;
				default:
					System.out.println("Error: Invalid choice.");
					break;
			}
		}
	}