Improved: Moved all code samples to fenced GitHub code blocks.