Defining a Number base class.