update code to illustrate examples