Created initial Loans functionality