Using biomass as an energy source with low CO2 emissions