Solve Exercise 4.1 - Part V - filter