How coding in classes can improve the GUI