Accumulate and give away: how a capacitor works