exercise 8 - adding cohort to input data and validating