Battery Charging and Discharging System