The Theory Behind Electricity