Gas steam boiler working principle