updated example code
updated example code