add classify method