snippet for get_context_data method