Implemented Example 1-1, Loan calculator