Construct a Python function to filter out all the words from a list that contains the letter "a".
['dog', 'cat', 'ant', 'tree', 'apple']
def filter_words_with_a(words):
 return [word for word in words if "a" in word]