implemented instantiation of new gradient descent after step 1