The back end code of the SW7 semester project