Fix code snippets in article