add code snippet to README