almost complete

Added sample filters and a working logic