update example (virtual method)