Sample application for classification with ActiveRecord