Added gradient

Added gradient