WHAT ARE THE FUNCTIONS OF A BATTERY