in the first two examples the word 'well' is an adverb. in the last example, it is an adjective. this is one example in which the same word can be both an adjective and an adverb but not in the same sentence.