changed example to use rosenbrock, added final print