Comparison of Ionic and Covalent Compounds