Changed filter function
First working version with both filters
Added Recursion