Fire is defined as a fast chemical reaction between combustibles and oxygen that produces heat, flames, gas and smoke. The key elements of fire are fuel, heat, and oxygen. Fires are classified into different classes based on the type of fuel involved - Class A involves wood, paper and cloth; Class B involves flammable liquids; Class C involves electrical fires; Class D involves combustible metals; and Class K involves cooking oils and fats. Fires can be triggered through direct ignition by flames or sparks, or indirect ignition through convection, conduction or radiation. Common causes of fires include friction, self-combustion, and chemical or electrical reactions. Water and foam are common fire extinguishing agents.