add optimization example in viz