How the energy market works