Here are some examples of working code, each of which is tied into a blog post and will be linked from the example page.