align the output format with the homework specification