added an example code.