Step 4 output formatting