Implementing the classification.