Extracted method.
Added dependency to weka.
Added training data.