Temperature class for Assignment 2