Reformat code with coding guideline