getCharge Replace Conditional with Polymorphism