Refactoring AmortizationSchedule program