BZ added some example code