converting compound_interest project (ruby) to python and using classes this time around.