Basic design for code sharing