fixed a typo and added function to delete courses