set constructor property of NeuralNetwork.prototype