classify method