Named constructors: temperature example