Gradient

Gradient is implemented and working.