modified OptimizationExercises