Update example in Readme with the updated API