Creating your own filter from scratch