function and class based views part is completed.