grouping materials based on their properties