Local Minimum in task 1 version 2 (work)