added equations that describe neural network