@Override
    public Course deleteCourse(long courseId) {
        for(int i = 0; i < courses.size(); i++){
            if(courses.get(i).getId() == courseId){
                return courses.remove(i);
            }
        }
        return null;
    }