Step 2 – backpropagation and weight updation