How to store energy when generating electricity from a dam