AMENDED AND RESTATED SUBSCRIPTION AND SHAREHOLDERS AGREEMENT