#5 refactored BatteryType class