changed Temp class