updated example code in readme