course factory now works. Defined dependencies for course service.