Dear Mr. Klaps,
This part of the code will run as part of the step[] function, but not on its own as it requires variables that exist only in the function. If you run the full step[] function (found under the subheading "Full definition of step[]" it should execute as intended.
Best,
Megha