Ethane is another example of a simple hydrocarbon. Ethane contains two carbon atoms and four hydrogen atoms. In chemistry we use a molecular formula to show how many atoms of each element are present in a molecule. A molecular formula however does not show the structure of the molecule.