update example code style