Adding attribute 'battery' to Battery.pm

Trying to get the values of the battery given a particular battery
with the attribute 'battery'.