Creating the sharing functions