regularization of gradients implemented and submitted -- assignment 4 complete