Original LoanCalculator program from textbook.