add example about function