added Classify method