implemented filter by class code