Initial code for a Temperature class