Ex 1: graphical interface