The bonding in carbon dioxide - the central atom (carbon) is surrounded by 8 electrons, according to the octet rule, and is a stable molecule.
Click this LINK to visit the original image and attribution information. Right click on the image to save the 800px teaching JPEG.