Why are there 18 groups in the periodic table?