purchase and resale agreement