Use the template mechanism to define the self-expanding array class, which you developed in Segment 754, such that the array elements may be any kind of number type.