What is code sharing and how does it work?