An electric circuit is composed of components connected together to allow electricity to flow. A simple circuit includes an energy source like a battery with positive and negative terminals containing chemicals that react to produce a current when connected, wires to carry the current, an output device to use the current, and a switch to open or close the circuit. Batteries and generators are sources of potential difference that push electrons continuously around the circuit in one direction from the negative to positive terminal.