Lender hierarchy

with testing