SpriteKit Swift 3 Tutorial question

At this part:

Simply add the following code to the end of didMove(to:):
run(SKAction.repeatForever(
SKAction.sequence([
SKAction.run(addMonster),
SKAction.wait(forDuration: 1.0)
])
))
Here you run a sequence of actions to call a block of code (you can seamlessly pass in your addMonster() method here thanks to the power of Swift), and then wait for 1 second. You then repeat this sequence of actions endlessly.

everything goes wrong, i cant seem to find the right place to put this, has anybody gone through this tutorial and can shed some light

nm i found the source code