Implemented some of BasicNeuralNetwork