COMP410's assignment7, a practice of GUI