A Class B fire extinguisher is designed to handle fires involving flammable liquids like grease and oil.