Classification of Pure and Impure Substances