Balancing Equations and Classifying Compounds