legal classification of crime