created Cases class and set_cases_class method