Classifying compounds