The molecule CO2 have 2 lone pairs located in the oxygen atoms. It has two double bonds also connecting carbon atom to the two oxygen atoms. It does obey the octet rule so the atoms need 8 electrons in each of them that is why electrons are shared.
The number of protons found in the nucleus equals the number of electrons that surround it, giving the atom a neutral charge (neutrons have zero charge). Most of an atom's mass is in its nucleus; the mass of an electron is only 1/1836 the mass of the lightest nucleus, that of hydrogen.Hoped this helped
It is make the molecule polar.
Ca (Clo3)2(s) ⇒ Ca Cl2 (s) + 3 O2 (g)