add a method to save a course