Smart eletric grid