update readme to add snippet example