Exhibit 2.4 STOCK PURCHASE AGREEMENT dated as of July 24, 1997