adding a function to pass a layer of nn
adding NN begining