test 4: reformat code, commented by anh le