Changes made after dividing course model into service. Service created for course.rb is course_service.rb