EXHIBIT 5 AMENDED AND RESTATED STOCKHOLDER AGREEMENT