refactored so you only have to call the smallest_temperature_difference method