updating struct example