Amended And Restated Stock Purchase Agreement