Beginning of the graphical interface implementation.