HOW DOES A THERMAL ENERGY STORAGE SYSTEM WORK