Re-add class_id field to Course model
Add get by id function to Course model
Update routes and index in Courses controller
Reduce redundancy in Course model