Updated README's inline example for the changed API