PURCHASE AGREEMENT dated as of August 18, 1997 between