Using the 'Generate categories' function