The intention is to build a plant that cooks coal into a gas , developing a pure stream of hydrogen that would be burned to make power , and a second stream of carbon dioxide , the main gas implicated in global warming .