add codes in models.py