Exercise 7 - decided to display cohort names using the key method in a method