updating code as we rework all examples