An introduction to ionic compouds