Amendment No. 2 to Stock Purchase Agreement