GUI for exercise 3