NeuralNetwork constructor done