Implementing product of Gaussian and Linear Gaussian.