Sync example code with blog entry