Added hotOrCold function