loan, share purchase and share repurchase agreement