completed ratings ex1 model.py