EXHIBIT 10.31 STOCK PURCHASE AGREEMENT dated as of November 27, 1996