AMENDED AND RESTATED RIGHTS AGREEMENT Dated as of July 23, 1998