Get categories by class