added a class for NeuralNetworkGradient w base impl