Updated readme with code snippet