AMENDED AND RESTATED PROMISSORY NOTE