Temperature conversion program using classes