basic functionality
each neuron calculates and stores its derivative with respect to the input