added sample function in views.py and sample template