how does hot water boiler work