The front end code of the CS372 Project