Implemented saving model
Introduced model manager