Optimization: A Distance Example