change gradient to antigradient, code review
Implemented lab 2