Fixed the GUI and toString method