Example code for sharing