Chan: Edited model.py and server.py