add CourseFileWriter class