creating category model