Update code snippets in README file