Renewable and nonrenewable energy sources can be used to produce secondary energy sources including electricity and hydrogen.