Smart electric grid