Adding example for scalar ref