Implemented Filter class