Classification of organic compounds