add artificial training

Stupid training data based on number
fix bug: no output

Add the control of classifier to the final output