sample shared code