@Override
  public void removeRequiredCourseFromDegree(int degreeId, int courseId) {

    Degree degree = degreeDao.getDegree(degreeId);
    Course course = courseDao.getCourse(courseId);
    degree.getRequiredCourses().remove(course);
    degreeDao.saveDegree(degree);
  }
  @Override
  public void addRequiredCourseToDegree(int degreeId, int courseId) {

    Degree degree = degreeDao.getDegree(degreeId);
    Course course = courseDao.getCourse(courseId);
    degree.getRequiredCourses().add(course);
    degreeDao.saveDegree(degree);
  }