Working wersion with recognation wiothout seralization
some change in neural class and training class (add fuction train with hash)