classify method implement