Since fires vary, different kinds of fire extinguisher are used to fight them. For example, the foam fire extinguisher is used for gasoline and oil fires. When turned side down, it sprays a thick foam that blankets the fire. The carbon dioxide extinguisher is also used to fight Class-B fires. When the handle is squeezed, the gas is forced out of the nozzle, smothering the fire.