Adding a class responsible for GUI components.