Changed so that the print function uses the declared variable so that it...

... now compiles