Matter is classified into groups based on how many types of atoms there are and how they are linked up.