The prediction of the class of hazard of organic compounds by their structure