add example and code format