updating example code to master