public StatisticDisplay(WeatherData weatherData) { this.weatherData = weatherData; weatherData.registerObserver(this); }