changing constructor as to support Integral and Sum forms