HOW DOES A RESIDENTIAL ENERGY STORAGE SYSTEM WORK WITH A GRID