fixed binding for CodeSample run method