AMENDED AND RESTATED RIGHTS AGREEMENT Dated as of August 13, 2002