Variables should be defined at the top of the module. Or create an `init()` function and put all of the initialization code in it.