Smart Grid for Energy Management