Change a bit of Statement class and addition of public functions to set and get the refernced variables