Added classify() method