Adding simulator for gradients, no code yet
Gradient function seems to work