amended and restated INVESTOR RIGHTS AGREEMENT