Creditcalculator from java programmin course