Added method 'classify'