change another code example to be in context of sample