public String addGradeItem() throws IOException {
        InputStreamReader in = new InputStreamReader(System.in);
        BufferedReader keyboard = new BufferedReader(in);
        DBConnector db = new DBConnector();
        
        System.out.println("Adding an assignment");
        System.out.println("Assignment title : ");
        String title = keyboard.readLine();
        System.out.println("Student ID: ");
        int studentID = Integer.parseInt(keyboard.readLine());
        System.out.println("Course ID: ");
        int courseID = Integer.parseInt(keyboard.readLine());
        System.out.println("Possible Points: ");
        int possiblePoints = Integer.parseInt(keyboard.readLine());
        System.out.println("Earned Points: ");
        int earnedPoints = Integer.parseInt(keyboard.readLine());
        System.out.println("Assignment type (homework,quiz,test): ");
        String type = keyboard.readLine();
        
        try {
            db.createGradeItem(title, studentID, courseID, possiblePoints, earnedPoints, type);
            return "Assignment successfully added.";
        } catch(Exception e){
            return e.getMessage();
        }
    }