THIRD AMENDMENT TO THE STOCK PURCHASE AGREEMENT