update example with comments