can you give an example code.