adding self as 1st argument > Class Encoder | app/views.py