public int showStudentCourses() throws Exception {
        InputStreamReader in = new InputStreamReader(System.in);
        BufferedReader keyboard = new BufferedReader(in);
        DBConnector db = new DBConnector();
        Mappers m = new Mappers();
        try {
            ArrayList<Course> courses = m.coursesByStudent(loggedInUser.getPersonID());
            int id;

            System.out.println("~~~~~Courses~~~~~");

            for(Course course : courses) {
                System.out.println(course.getCourseID() + " " + course.getTitle() + "  Teacher: " + course.getTeacher().getLastName() 
                                                                + " Semester: " + course.getSeason()
                                                                + " " + course.getYear());                     
            }

            System.out.println("Enter course ID to view grades: ");
            id = Integer.parseInt(keyboard.readLine());
            return id;  
        }
        catch (Exception e) {
            System.out.println(e.getMessage());
            return -1;
        }
        
    }