exercise7.rb - wrote method to display cohorts' enrollment