updated outdated code in readme example