update example
basic implementation