[Chapter 5] 5.1 gradient ascent