CHARGING OF BATTERY AND DISCHARGING OF