Simple method for converting CO2 into useful compounds