add code for examples