This explanation is greatly simplified, but this is the basic concept.