started implementation of gradient descent