Added helper class for the gradient.