Renamed a few variables

Had forgotten to rename them when I changed the purpose of the example.