Assiging categories