Revise main.c in Exercise 2.8.

Thank you!