Event Driven Programming task 1