update example and diagram