updated sample example