Create FilterClass method