fix example, update variable name conventions