added classes to views.py