added get_majors function