added wangzhen's code examples