builds and lists courses for each major