adding the get temperature method