Why Carbon Can Form Many Different Compounds