How does the battery become a power source and charge