LOAN AGREEMENT AND SECURITY ASSIGNMENT