Working function: create category