Accumulator simple behaviour

dded accumulator simple behaviour: charging and discharging.