a battery is for supplying electrical energy