building the logic for building out the courses