AMENDED and restated INVESTOR RIGHTS AGREEMENT