Update with class example