Added booleans to getCourses(...) to check for underGrad/Grad courses