Updated some example code