Code examples from the blog.