Amended and Restated Investor Rights Agreement