Improved filter definition with one closer to the hint.
Rename the old one into filter_1 as it is done for the other functions