updates w and b after each iteration in the handful