Implements static union method
Adds getCourseCodes method to the CourseCollection object