Added method for adding a new course.