Create categories with ancestry.