You have to declare the variable 'data', before you can use it. I'll guess you know how to do that.