another approach to the classification problem