Update composite example code in README.md