Updated readme example for latest api