def app(): """Create WeatherApp and Controller objects.""" _app = WeatherApp() controller = Controller() _app.controller = controller return _app