added deleteCourse function