using ccv_categorized() method to generate the struct