Refactored MainFragment to receive WeatherData object in the constructor