First version of the program with a GUI