EXHIBIT 10.31 EXECUTION COPY AMENDED AND RESTATED CLASS B NOTE PURCHASE AGREEMENT Dated as of February 22, 2002