Adding example and doc snippet