added a method which should oscillate the temperature back and forth