added code snippet to read me