added safe shared data example