takes a course schedule and returns an array of objects that can be used to render all the individual course