Added in getNN method for the NeuralNetwork class.