Why do atoms form bonds| Ionic bond and covalent bond