Created NeuralNetwork class