replace switch in getCharge method with polymorphism