more example code in doc