This is an assignment 6 for GUI programming I.