#6 corrected @variables to self.variables where necessary