learning to share code