trait_categories function

Constructor for the S4 trait_categories object.