changing TotalNumberOfCases in example