added code example to readme