Classification of a set of elements