Wrote new generic convolution class