The front end code of the SW7 semester project