Updated task code example in README.md