Sharing

Fixes #15.
I started this way, but it is a bit more complex and I didn't wanted to break anything.