a program to actually perform the categorization