update sample code in README