create action for courses controller
create course_factory.js