Solved for neural network