Ionic compound model