Basic framework of energy storage system