3. The advance of money B^-way of loan to a person engaged or about to engage in any trade or undertaking upon a contract in writing with such person that the lender shall receive a rate of interest varying with the profits, or shall receive a share of the profits arising from carrying on such trade or undertaking, shall not, of itself, constitute the lender a partner with the person carrying on such trade or undertaking, or render him responsible as such. *Lender not a partnerby advancing' money for shareof profits.*