Laying the foundation for the GUI