Handle errors more concisely through croak
Bless a hash instead of a sub reference; anonymous method for classification is now known as classify