Improve example output code