added delete method to course