Update 06-extensions.md

Clean up code example and description for it in text.