Classes and collections: Principles of organization in the learning of hierarchical relations