Energy Management with storage systems