add example to makeSingleObjectiveFun