Fix a sample code and text format