add code example to readme