A new class of special functions suggested by the generalized hypergeometric function and its q analogue