HOW TO DESIGN A GRID CONNECTED BATTERY