Write the symbols for the two oxygen atoms (O).
Represent the outer shell electrons around each oxygen atom using dots.
Oxygen needs a total of eight electrons to have a full outer shell, so the two oxygen atoms share two pairs of electrons, forming a double bond.
It looks something like this:
.. ..
O - O
.. - ..
Includes a shell of 8 valence electrons, and two double bonds.