1 EXHIBIT 10.5 DATED AS OF JULY 1, 1997 AMENDED AND RESTATED SERVICE AGREEMENT