Made temperature class immutable