TASK 2: Fixed function name for nonlinear method

Mistype in previous commit.