Some practice code for the GUI