Added optimization example