FORM OF NOTE PURCHASE and security AGREEMENT