refactored code according to pep8 style guide
refactored Charge class