seperated the model manager from the main class