filter_long_words and higher order functions made