NOTE PURCHASE AND ASSIGNMENT AGREEMENT