We can predict the structure around atoms in molecules such as H2O or in covalent polyatomic ions such as SO42- using Lewis formulas. However, we CANNOT use Lewis formulas to predict the structure of ionic compounds because these compounds do not contain molecules. Compare solid HCl with solid NaCl and solid CO2 (dry ice) with solid CaF2, for example.