refactoring of repayment plan
refactoring