added specific formatting to code snippets