SHAREHOLDER AND INVESTOR RIGHTS AGREEMENT