Added a safe_scope example