added code blocks for the example