Write a script that generates the following GUI.

Solution