this is some example code for a post on my blog as people were looking for examples