CODE FOR SHARING