Implemented filter function
Merge pull request #6 from KartikTalwar/experimental

Implemented filter function - Fixes #5