LoanAction: use constructor to eliminate redundant code.

Closed #104.