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. 