Add filter class hierachy

Filter class should be used to filter the fields.