initial working version of the specializer. Init() and train() implemented.