neural network implementation beginning