added three different ways to code sharing.

added three different ways to code sharing.