Refactored the gradient ascent to be more modular.