changed methods to act on instance variable @temperature