get_temperature method working