Problem 23 with filter implementation