Update source code example in research method