AMENDMENT NO. 3 to STOCK PURCHASE AGREEMENT