Added function to remove courses