Added code snippets for model and queryset methods