Update index.markdown

Minor updates to synchronous example code.