Filter class implementation