added some example code