Formated code sample in README.md to be displayed as a code block

Updated README.md to use Markdown codeblock syntax for sample code to make it more visually appealing.