Formation of Ionic and Covalent Bonds