add crappy version of first cont. optimization propblem