Took main method out of model.py