implemented Model.py