Updated code with markdown code blocks