PUTNAM INVESTMENT FUNDS AMENDED AND RESTATED MANAGEMENT CONTRACT