Update sample in readme for new API.