updated models.py with meta classes