How to create and assign categories to tasks