FIRST AMENDED AND RESTATED MERGER AGREEMENT