updated readme with code sample