add update(T bean) method
update code examples to match the recent updates.