Chapter 8 temperature object , static methods and inheritance