updated readme with snippet