Add second step (calculate errors and update weights)