`r` is implicitly declared here. Let's change that to `var r`.