Generalised the numeric class hirarchy.