Learning Neural Network using backpropagation