Add `update()` as suggested by #24