Added Template class to models.py