A Generic Number Class